package com.home.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import com.home.timesheet.entity.TimesheetVO;
import com.home.timesheet.entity.TimesheetVOImpl;

@SuppressWarnings("serial")
public class User implements Serializable{
	/**
     * 
     */
    private String userId;  // 用户主键ID
	private String userName;// 用户登陆名字
	private String passWord;// 用户密码
	private String email;	// 邮箱地址
	
	private Integer level = 0;	// 用户级别,默认0
	private Integer status = 0;	// 用户状态，默认0：可用
	private Date lastLoginTime = new Date(); // 最后一次登陆时间,默认当前时间
	
	private Date createTime = new Date();// 注册时间，默认当前时间

	private UserInfo userinfo; // 用户详细信息
	
	
	private Set<TimesheetVOImpl> timesheet;// 用户数据
	
    public Set<TimesheetVOImpl> getTimesheet() {
        return timesheet;
    }
    public void setTimesheet(Set<TimesheetVOImpl> timesheet) {
        this.timesheet = timesheet;
    }
    public UserInfo getUserinfo() {
        return userinfo;
    }
    public void setUserinfo(UserInfo userinfo) {
        this.userinfo = userinfo;
    }
    public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Date getLastLoginTime() {
		return lastLoginTime;
	}
	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassWord() {
		return passWord;
	}
	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}
    @Override
    public String toString() {
        return "User [userId=" + userId + ", userName=" + userName
                + ", passWord=" + passWord + ", email=" + email + ", level="
                + level + ", status=" + status + ", lastLoginTime="
                + lastLoginTime + ", createTime=" + createTime + ", userinfo="
                + userinfo + ", timesheet=" + timesheet + "]";
    }
	
}
